﻿using System;
using fastCSharp;

namespace diantou.dataModel
{
    /// <summary>
    /// 支付相关产品订单
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    [fastCSharp.code.cSharp.sqlModel]
    [fastCSharp.code.cSharp.webView.clientType(Name = "diantou.payProductOrder")]
    public partial class payProductOrder
    {
        /// <summary>
        /// 订单标识
        /// </summary>
        [fastCSharp.code.cSharp.webView.outputAjax]
        public int Id;
        /// <summary>
        /// 用户标识
        /// </summary>
        public int UserId;
        /// <summary>
        /// 产品标识
        /// </summary>
        public int ProductId;
        /// <summary>
        /// 订单产品数量
        /// </summary>
        public int ProductCount;
        /// <summary>
        /// 交易金额
        /// </summary>
        public int Price;
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime SubmitTime;
        /// <summary>
        /// 订单完成时间
        /// </summary>
        public DateTime NotifyTime = pub.MinTime;

        /// <summary>
        /// 客户信息
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 1, IsIgnoreMaxStringLength = true)]
        public string ClientInfo;
        /// <summary>
        /// 远程预备订单标识
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 1, MaxStringLength = 64)]
        public string RemoteId = string.Empty;
        /// <summary>
        /// 远程订单标识
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 1, MaxStringLength = 32)]
        public string NotifyRemoteId = string.Empty;
        /// <summary>
        /// 回调数据
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 2, IsIgnoreMaxStringLength = true)]
        public string CallbackPacket = string.Empty;
    }
}
